//
//  CPNewCell.m
//  News
//
//  Created by chen on 15/3/24.
//  Copyright (c) 2015年 chen. All rights reserved.
//

#import "CPNewCell.h"
#import "CPNewModal.h"
#import "UIImageView+WebCache.h"

@interface CPNewCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageViewimgsrc;
@property (weak, nonatomic) IBOutlet UILabel *labelTitle;
@property (weak, nonatomic) IBOutlet UILabel *labeldigest;


@end

@implementation CPNewCell



- (void)setModal:(CPNewModal *)modal
{
    _modal = modal;
    [self.imageViewimgsrc sd_setImageWithURL:[NSURL URLWithString:modal.imgsrc]];
    
    self.labelTitle.text = modal.title;
    self.labeldigest.text = modal.digest;
   
}


@end
